package entityBeans;

import java.io.Serializable;
import javax.persistence.*;
import java.util.Set;


/**
 * The persistent class for the regiones database table.
 * 
 */
@Entity
@Table(name="regiones")
public class Regione implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@Column(name="id_region")
	private Integer idRegion;

	private String capital;

	private String nombre;

	//bi-directional many-to-one association to Comuna
	@OneToMany(mappedBy="regione")
	private Set<Comuna> comunas;

    public Regione() {
    }

	public Integer getIdRegion() {
		return this.idRegion;
	}

	public void setIdRegion(Integer idRegion) {
		this.idRegion = idRegion;
	}

	public String getCapital() {
		return this.capital;
	}

	public void setCapital(String capital) {
		this.capital = capital;
	}

	public String getNombre() {
		return this.nombre;
	}

	public void setNombre(String nombre) {
		this.nombre = nombre;
	}

	public Set<Comuna> getComunas() {
		return this.comunas;
	}

	public void setComunas(Set<Comuna> comunas) {
		this.comunas = comunas;
	}
	
}